import req from "@/api/axios";
export default {
  // 用电设备分页数据/om/v1/energyEquipment/queryPageList
  energyQueryPageList(params) {
    return req.post("/om/v1/energyEquipment/queryPageList", params)
  },
  // 用水设备分页数据
  // 添加能源设备 /om/v1/energyEquipment/add
  add(params) {
    return req.post("/om/v1/energyEquipment/add", params)
  },
  // 批量删除设备 /om/v1/energyEquipment/delList
  delLis(params) {
    return req.post("/om/v1/energyEquipment/delList", params)
  },
  // 修改设备实体 /om/v1/energyEquipment/edit
  edit(params) {
    return req.post("/om/v1/energyEquipment/edit", params)
  },

  // 检测哪些设备已经使用 /om/v1/energyEquipment/checkBeenUsed
  checkBeenUsed(params) {
    return req.post("/om/v1/energyEquipment/checkBeenUsed", params)
  },

  // 检测该设备是否已经使用 /om/v1/energyEquipment/checkBeenUsed/{energyEquipmentId}
  checkIsBeenUsed(params) {
    return req.post(`/om/v1/energyEquipment/checkBeenUsed/${params}`)
  }
}
